﻿
using System.Collections;
using System.Collections.Generic;
using UGUIFW;
using UnityEngine;
using UnityEngine.SceneManagement;

public class MainCityUI : BaseUI
{
    public MainCityUI(UIInfo info) : base(info)
    {
    }
    public override void Display()
    {
        base.Display();
        //事件注册
        RigisterButtonObjectEvent("BtnMarket",
            p => ShowUI(EUIName.Market_UI)
            );

        RigisterButtonObjectEvent("BtnNextScene",
        p => SceneManager.LoadScene("Scene_02")
        );

        RigisterButtonObjectEvent("BtnReturn",
        p => CloseUI()
        );
    }
}